<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
<html:html>
<head>
<title>
listadoEstatus
</title>
<link href="css/estilos.css" rel="stylesheet" type="text/css">
</head>
<script type="" language="javascript">
  function eliminarGrupo(bool_del){
    if(bool_del==1){
      if( confirm("Desea eliminar este registro ") ){
        return true;
      }
      return false;
    }else{
      alert("No se puede eliminar este registro");
      return false;
    }
  }
</script>
<body bgcolor="#ffffff">

  <table width="100%" height="100%" cellpadding="0" cellspacing="0">
    <tr>
      <td height="52"><tiles:insert page="tiles/header.jsp"/></td>
    </tr>
    <tr>
      <td height="30"><tiles:insert page="tiles/menu.jsp"/></td>
    </tr>
    <tr>
      <td align="center" valign="top"><br>
        <table width="650" class="tabla" cellpadding="0" cellspacing="1" border="0" align="center">
          <tr>
		  	<td colspan="5" height="23">
				<table width="100%" border="0" cellpadding="0" cellspacing="0">
					<tr class="encabezadoTabla font_general">
						<td  width="35%" height="18" align="right" valign="middle">
							<img src="images/img_loginFlecha.gif" alt=" " width="17" height="23"/>
						</td>
						<td>
							<strong>&nbsp;Listado Estatus</strong>
						</td>
					</tr>
				</table>
			</td>
		</tr>
		<tr>
			<td width="" height="20" align="center" class="font_general encabezado_col"><a href="javascript:var win=open('<html:rewrite page="/estatus.do?action=editEstatus"/>', 'Editar','width=300,status=YES,height=150,scrollbars=NO')"><img src="images/img_agregar.gif" height="15" width="15" alt="Grupo Nuevo" border="0"></a></td>
            <td width="" align="center" class="font_general encabezado_col">Codigo Estatus</td>
            <td width="" align="center" class="font_general encabezado_col">Descripcion Estatus</td>
            <td width="" align="center" class="font_general encabezado_col"></td>
          </tr>
          <logic:iterate id="estatus" name="arr_estatus">
            <bean:define id="bool_row" name="estatus" property="bool_fila"></bean:define>
            <bean:define id="int_del" name="estatus" property="str_delEstatus"></bean:define>
            <tr>
              <td width="33"  align="center" class="font_general <logic:equal name="bool_row" value="false">im</logic:equal>par"><a href="javascript:var win=open('<html:rewrite page="/estatus.do" name="estatus" property="map_urlActualizar" />', 'Editar','width=300,status=YES,height=150,scrollbars=NO')"><img src="images/img_editar.gif" height="15" width="15" border="0" alt="Editar Grupo"></a></td>
              <td width="200" align="left" class="font_general <logic:equal name="bool_row" value="false">im</logic:equal>par">&nbsp;<bean:write name="estatus" property="str_codEstatus"/></td>
              <td width="350" align="left" class="font_general <logic:equal name="bool_row" value="false">im</logic:equal>par">&nbsp;<bean:write name="estatus" property="str_descEstatus"/></td>
              <td width="33" align="center" class="font_general <logic:equal name="bool_row" value="false">im</logic:equal>par">
                 <logic:equal name="int_del" value="0"><a href="javascript:var win=open('<html:rewrite page="/estatus.do" name="estatus" property="map_urlEliminar" />', 'Editar','width=50,status=YES,height=50,scrollbars=NO')" onclick="return eliminarGrupo(1);"><img src="images/img_borrar.gif" height="15" width="15"  border="0" alt="Eliminar Estatus"></a></logic:equal>
                 <logic:equal name="int_del" value="1"><a href="javascript:var win=open('<html:rewrite page="/estatus.do" name="estatus" property="map_urlEliminar" />', 'Editar','width=50,status=YES,height=50,scrollbars=NO')" onclick="return eliminarGrupo(0);"><img src="images/img_borrar.gif" height="15" width="15"  border="0" alt="Eliminar Estatus"></a></logic:equal>
              </td>
            </tr>
          </logic:iterate>
        </table>
      </td>
    </tr>
    <tr>
      <td><tiles:insert page="tiles/footer.jsp"/></td>
    </tr>
  </table>


</body>
</html:html>
